Ext.define('admin.view.basicInfo.addCardUserMainView', {
    extend: 'Ext.window.Window',
    alias: 'widget.basicInfo.addCardUserMainView',
    layout: "card",
    height: '80%',
    width: 650,
    activeItem: 0,
    items: [
        {xtype: 'basicInfo.cardUserAndCardView'},
        {
            layout: 'hbox',
            align: 'stretchmax',
            items: [
                {
                    layout: 'vbox',
                    height: '100%',
                    flex: 1,
                    items: [
                        {xtype: 'label', text: '所有用户组'},
                        {xtype: 'basicInfo.cardUserGroupMenuTree', flex: 1, width: '100%'}
                    ]
                }, {
                    layout: 'center',
                    height: '100%',
                    items: {
                        layout: 'vbox',
                        items: [{
                            xtype:'button',
                            iconCls:'right_16',
                            padding:'10 1 10 1',
                        },{
                            xtype:'button',
                            iconCls:'left_16',
                            padding:'10 1 10 1',
                        }]
                    }
                }, {
                    layout: 'vbox',
                    height: '100%',
                    flex: 1,
                    items: [
                        {xtype: 'label', text: '己分配用户组'},
                        {xtype: 'basicInfo.cardUserGroupMenuTree', flex: 1, width: '100%'}
                    ]
                },
            ]
        }
    ],
    buttons: [
        {
            id: 'move-prev',
            disabled: true,
            text: "上一步",
            handler: function (btn) {
                cardLayoutNavigate(btn.up('panel'), 'prev');
            }
        },
        {
            id: 'move-next',
            text: "下一步",
            handler: function (btn) {
                cardLayoutNavigate(btn.up('panel'), 'next');
            }
        },
        {
            text: "完成",
            action: 'completeAddCardUser'
        }
    ]
});